package com.johson.covid19server;

import lombok.extern.slf4j.Slf4j;
import com.johson.covid19server.config.BeanConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.io.Resources;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.context.annotation.Configuration;
import java.io.InputStream;
import java.io.IOException;

@Slf4j
@Configuration
@SpringBootApplication
@MapperScan(basePackages = "com.johson.covid19server.dao")
@ComponentScan
public class Covid19serverApplication {
	public static void main(String[] args) {
        log.info("main enter");
		SpringApplication.run(Covid19serverApplication.class, args);
        log.info("main exit");
	}

}
